package com.ruiyian.bridge.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruiyian.bridge.project.domain.MeasurePoint;

import java.util.List;

/**
 * 测点信息Mapper接口
 *
 * @author ruoyi
 * @date 2022-01-20
 */
public interface MeasurePointMapper extends BaseMapper<MeasurePoint>
{

    /**
     * 根据相关监测信息(监测量 桥梁id) 查询监测项
     */
    public List<MeasurePoint>  getSensorNoByCondition(MeasurePoint measurePoint);

    /**
     * 查询测点信息
     *
     * @param id 测点信息主键
     * @return 测点信息
     */
    public MeasurePoint selectTSensorInfoById(Long id);

    /**
     * 查询测点信息列表
     *
     * @param measurePoint 测点信息
     * @return 测点信息集合
     */
    public List<MeasurePoint> selectTSensorInfoList(MeasurePoint measurePoint);

    /**
     * 新增测点信息
     *
     * @param measurePoint 测点信息
     * @return 结果
     */
    public int insertTSensorInfo(MeasurePoint measurePoint);

    /**
     * 修改测点信息
     *
     * @param measurePoint 测点信息
     * @return 结果
     */
    public int updateTSensorInfo(MeasurePoint measurePoint);

    /**
     * 删除测点信息
     *
     * @param id 测点信息主键
     * @return 结果
     */
    public int deleteTSensorInfoById(Long id);

    /**
     * 批量删除测点信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTSensorInfoByIds(Long[] ids);

    /**
     * 根据桥梁获取测点信息
     * @param id
     * @return
     */
    List<MeasurePoint> getMeasPointList(Long id);

    /**
     * 获取所有桥梁测点信息
     * @return
     */
    List<MeasurePoint> getMeasPointListAll();

}
